package org.termine.entity;

import java.io.Serializable;
import java.util.Date;

public class Availability implements Serializable {

	private static final long serialVersionUID = 6529515886526717671L;
	
	public static final String UNAVAILABILITY = "UNAVAILABILITY";
	public static final String AVAILABILITY = "AVAILABILITY";
	
	private Integer availability_id;
	private Integer provider_id;
	private String type;
	private Date start;
	private Date end;
	
	public Availability copy() {
		Availability clone = new Availability();
		clone.setAvailability_id(availability_id);
		clone.setProvider_id(provider_id);
		clone.setType(type);
		clone.setStart(start);
		clone.setEnd(end);
		return clone;
	}
	
	/*
	 * Getters & Setters
	 */
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getAvailability_id() {
		return availability_id;
	}

	public void setAvailability_id(Integer availability_id) {
		this.availability_id = availability_id;
	}

	public Integer getProvider_id() {
		return provider_id;
	}

	public void setProvider_id(Integer provider_id) {
		this.provider_id = provider_id;
	}

	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	@Override
	public String toString() {
		return "Availability{" + "availability_id=" + availability_id + ", provider_id=" + provider_id + ", start=" + start + ", end=" + end + '}';
	}
}
